Forum
24
bd

















1. First of all registration here 2. Then Click on Be a trainer or writer button 3. Collect your trainer or writer id card from trainer master 4. And create post here for earn money! 5. For trainer 100 tk minimum withdraw 6. For writer 500 tk minimum withdraw 7. Payment method Bkash Only
obaydulbc obaydulbc
Trainer

1 year ago
obaydulbc

php footer design with css code



To create a footer in PHP, you can create a separate file for your footer code and then include it in your PHP pages using the include or require statement. Here is an example of a basic PHP footer design:

<footer class="footer">
<div class="footer-content">
<p>&copy; <?php echo date('Y'); ?> My Website</p>
<nav class="navigation">
<ul>
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</nav>
</div>
</footer>



css code for styling this php footer


.footer {
background-color: #f0f0f0;
padding: 20px;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
}

.footer-content p {
margin: 0;
}

.navigation ul {
list-style: none;
margin: 0;
padding: 0;
}

.navigation li {
display: inline-block;
margin-right: 20px;
}

.navigation a {
text-decoration: none;
color: #333;
transition: color 0.3s ease;
}

.navigation a:hover {
color: #666;
}


In this code, we have created a basic footer that includes the copyright information and a navigation menu. We have used the HTML5 footer element to define the footer section of the page, and within the footer, we have created a div with a class of footer-content that contains the copyright information and a nav element with a class of navigation that contains an unordered list (ul) of navigation links.

We have used PHP's date() function to dynamically display the current year in the copyright information. You can customize the footer design by adding CSS styles to your style.css file or by adding inline styles directly to the HTML elements.

Once you have created your footer file, you can include it in your PHP pages using the following code:


<?php
include 'footer.php';
?>


This will include the contents of your footer file at the bottom of your PHP page.




×

Alert message goes here

Plp file


Category
Utube fair

pixelLab দিয়ে নিজের নাম ডিজাইন ও Mocup

Paid hack

App link topup